home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
shadow.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
535b
|
18 lines
#include "shadow.h"
void Shadow::show(rect where, int pixels)
{
if(pixels)
{
setfillstyle(CLOSE_DOT_FILL, pColorSet->colors.SHADOW_COLOR);
bar(where.origin.X, where.origin.Y,
where.origin.X + pixels - 1, where.corner.Y);
bar(where.origin.X, where.origin.Y,
where.corner.X, where.origin.Y + pixels - 1);
bar(where.corner.X - pixels + 1, where.origin.Y,
where.corner.X, where.corner.Y);
bar(where.origin.X, where.corner.Y - pixels + 1,
where.corner.X, where.corner.Y);
}
}